package homeworks;

public class RandomNumHandlerDemo {
    public static void main(String[] args) {
useRandomNumHandler(new RandomNumHandler() {
    @Override
    public String getNumber() {

        return "我";
    }
});
        System.out.println(useRandomNumHandler(() -> "我"));

    }
    public static String useRandomNumHandler(RandomNumHandler ra) {
        return  ra.getNumber();

    }
}
